-- GENERATED SPELL FOR [Deathforge Mine] --


function spell0_22315(pUnit, Event) --@Deathforge Mine Explosion,Self--
pUnit:FullCastSpellOnTarget(38108,pUnit)
pUnit:RegisterEvent('Sorts_22315', 1347, 1)
end

function Sorts_22315(pUnit, Event)
local choix_sorts_22315 = math.random(0, 0)
if choix_sorts_22315 == 0 then
pUnit:RegisterEvent('spell0_22315', 1, 1)
end
end

function mob22315_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22315', math.random(1500, 3000), 1)
end

function mob22315_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22315_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22315_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22315, 1, 'mob22315_Action')
RegisterUnitEvent(22315, 2, 'mob22315_Leave')
RegisterUnitEvent(22315, 3, 'mob22315_Kill')
RegisterUnitEvent(22315, 4, 'mob22315_Die')
